﻿
/* 
 * Since 2008 - 2012
 */
package com.hh.bss.project.entity;

import javax.validation.constraints.*;
import org.hibernate.validator.constraints.*;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

import java.util.*;

import com.hh.bss.base.*;
import com.hh.bss.common.page.*;
import com.hh.bss.common.page.impl.*;
import com.hh.bss.project.dao.*;
import com.hh.bss.project.entity.*;
import com.hh.bss.project.service.*;
import com.hh.bss.project.vo.query.*;
import com.hh.bss.util.*;





public class ContractJobCvInterview extends BaseEntity implements java.io.Serializable{
	private static final long serialVersionUID = 5454155825314635342L;
	
	//alias
	public static final String TABLE_ALIAS = "ContractJobCvInterview";
	public static final String ALIAS_ID = "id";
	public static final String ALIAS_RECOM_ID = "recomId";
	public static final String ALIAS_PLAN_DT = "planDt";
	public static final String ALIAS_INTERVIEWER = "interviewer";
	public static final String ALIAS_ADDRESS = "address";
	public static final String ALIAS_CONTENT = "content";
	public static final String ALIAS_IV_DT = "ivDt";
	public static final String ALIAS_RESULT = "result";
	public static final String ALIAS_RESULT_DESC = "resultDesc";
	public static final String ALIAS_CREATOR = "creator";
	public static final String ALIAS_CREATE_DT = "createDt";
	public static final String ALIAS_MODIFIER = "modifier";
	public static final String ALIAS_MODIFIED_DT = "modifiedDt";
	
	//date formats
	public static final String FORMAT_PLAN_DT = DATE_TIME_FORMAT;
	public static final String FORMAT_IV_DT = DATE_TIME_FORMAT;
	public static final String FORMAT_CREATE_DT = DATE_FORMAT;
	public static final String FORMAT_MODIFIED_DT = DATE_FORMAT;
	
	//可以直接使用: @Length(max=50,message="用户名长度不能大于50")显示错误消息
	//columns START
	
	private java.lang.Integer id;
	@NotNull 
	private java.lang.Integer recomId;
	@NotNull 
	private java.util.Date planDt;
	@Length(max=255)
	private java.lang.String interviewer;
	private java.lang.String interviewerTitle;
	@Length (max=25)
	private String interviewerTel;
	@Length(max=255)
	private java.lang.String address;

	@Length(max=255)
	private java.lang.String content;
	
	private java.util.Date ivDt;
	@NotNull @Max(32767)
	private Integer result;
	@Length(max=255)
	private java.lang.String resultDesc;
	@Length(max=50)
	private java.lang.String creator;
	
	private java.util.Date createDt;
	@Length(max=50)
	private java.lang.String modifier;
	
	private java.util.Date modifiedDt;
	/**面试方式*/
	private String crmType;
	
	//columns END

	public String getCrmType() {
		return crmType;
	}

	public void setCrmType(String crmType) {
		this.crmType = crmType;
	}

	public ContractJobCvInterview(){
	}

	public ContractJobCvInterview(
		java.lang.Integer id
	){
		this.id = id;
	}

	
	public java.lang.String getInterviewerTitle() {
		return interviewerTitle;
	}

	public void setInterviewerTitle(java.lang.String interviewerTitle) {
		this.interviewerTitle = interviewerTitle;
	}
	
	public String getInterviewerTel() {
		return interviewerTel;
	}

	public void setInterviewerTel(String interviewerTel) {
		this.interviewerTel = interviewerTel;
	}

	public void setId(java.lang.Integer value) {
		this.id = value;
	}
	
	public java.lang.Integer getId() {
		return this.id;
	}
	public void setRecomId(java.lang.Integer value) {
		this.recomId = value;
	}
	
	public java.lang.Integer getRecomId() {
		return this.recomId;
	}
	public String getPlanDtString() {
		return DateConvertUtils.format(getPlanDt(), FORMAT_PLAN_DT);
	}
	public void setPlanDtString(String value) {
		setPlanDt(DateConvertUtils.parse(value, FORMAT_PLAN_DT,java.util.Date.class));
	}
	
	public void setPlanDt(java.util.Date value) {
		this.planDt = value;
	}
	
	public java.util.Date getPlanDt() {
		return this.planDt;
	}
	public void setInterviewer(java.lang.String value) {
		this.interviewer = value;
	}
	
	public java.lang.String getInterviewer() {
		return this.interviewer;
	}
	public void setAddress(java.lang.String value) {
		this.address = value;
	}
	
	public java.lang.String getAddress() {
		return this.address;
	}
	public void setContent(java.lang.String value) {
		this.content = value;
	}
	
	public java.lang.String getContent() {
		return this.content;
	}
	public String getIvDtString() {
		return DateConvertUtils.format(getIvDt(), FORMAT_IV_DT);
	}
	public void setIvDtString(String value) {
		setIvDt(DateConvertUtils.parse(value, FORMAT_IV_DT,java.util.Date.class));
	}
	
	public void setIvDt(java.util.Date value) {
		this.ivDt = value;
	}
	
	public java.util.Date getIvDt() {
		return this.ivDt;
	}
	public void setResult(Integer value) {
		this.result = value;
	}
	
	public Integer getResult() {
		return this.result;
	}
	public void setResultDesc(java.lang.String value) {
		this.resultDesc = value;
	}
	
	public java.lang.String getResultDesc() {
		return this.resultDesc;
	}
	public void setCreator(java.lang.String value) {
		this.creator = value;
	}
	
	public java.lang.String getCreator() {
		return this.creator;
	}
	public String getCreateDtString() {
		return DateConvertUtils.format(getCreateDt(), FORMAT_CREATE_DT);
	}
	public void setCreateDtString(String value) {
		setCreateDt(DateConvertUtils.parse(value, FORMAT_CREATE_DT,java.util.Date.class));
	}
	
	public void setCreateDt(java.util.Date value) {
		this.createDt = value;
	}
	
	public java.util.Date getCreateDt() {
		return this.createDt;
	}
	public void setModifier(java.lang.String value) {
		this.modifier = value;
	}
	
	public java.lang.String getModifier() {
		return this.modifier;
	}
	public String getModifiedDtString() {
		return DateConvertUtils.format(getModifiedDt(), FORMAT_MODIFIED_DT);
	}
	public void setModifiedDtString(String value) {
		setModifiedDt(DateConvertUtils.parse(value, FORMAT_MODIFIED_DT,java.util.Date.class));
	}
	
	public void setModifiedDt(java.util.Date value) {
		this.modifiedDt = value;
	}
	
	public java.util.Date getModifiedDt() {
		return this.modifiedDt;
	}

	public String toString() {
		return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
			.append("Id",getId())
			.append("RecomId",getRecomId())
			.append("PlanDt",getPlanDt())
			.append("Interviewer",getInterviewer())
			.append("Address",getAddress())
			.append("Content",getContent())
			.append("IvDt",getIvDt())
			.append("Result",getResult())
			.append("ResultDesc",getResultDesc())
			.append("Creator",getCreator())
			.append("CreateDt",getCreateDt())
			.append("Modifier",getModifier())
			.append("ModifiedDt",getModifiedDt())
			.toString();
	}
	
	public int hashCode() {
		return new HashCodeBuilder()
			.append(getId())
			.toHashCode();
	}
	
	public boolean equals(Object obj) {
		if(obj instanceof ContractJobCvInterview == false) return false;
		if(this == obj) return true;
		ContractJobCvInterview other = (ContractJobCvInterview)obj;
		return new EqualsBuilder()
			.append(getId(),other.getId())
			.isEquals();
	}
}

